package com.pony.iphone.service;

import com.pony.iphone.dto.TimeRange;
import com.pony.iphone.entity.Error;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pony.iphone.entity.Library;
import com.pony.iphone.utils.R;

import java.util.List;

public interface ErrorService extends IService<Error> {
    
    /**
     * 批量处理错误信息（优化版 - 批量操作）
     */
    R countError(List<String> errorNames);

    /**
     * 获取错误信息统计
     * @param timeRange
     * @return
     */
    R countInfo(TimeRange timeRange);
}